<%@page contentType="text/plain" pageEncoding="UTF-8" import="com.mop.dinnerbook.dao.*,java.util.*,com.mop.dinnerbook.bean.*,java.net.*"%>
<%
    int pid = Integer.parseInt(request.getParameter("pid"));
    int did = Integer.parseInt(request.getParameter("did"));
    int fid = Integer.parseInt(request.getParameter("fid"));
    request.setCharacterEncoding("UTF-8");
    String mname = request.getParameter("mname");
    mname = URLDecoder.decode(mname, "UTF-8");
    System.out.println("-----55--------"+mname+"----------------------");
    ManageDAO dao = new ManageDAO();
    boolean result = dao.addMember(pid,did,mname,fid);
    if(result == false){
            out.write("增加失败，员工姓名重复！");
    }else{      
            out.write("增加成功！");
    }
%>
